package com.mondo.financialwallet.domain.model;

public class Response<T> {

    public static Response error(String message) {
        return new Response<>(null, 0, message);
    }

    private T data;

    private int status;

    private String message;

    public T getData() {
        return data;
    }

    public int getStatus() {
        return status;
    }

    public String getMessage() {
        return message;
    }

    public Response(T data, int status, String message) {
        this.data = data;
        this.status = status;
        this.message = message;
    }
}
